﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Donem.aspx.cs" Inherits="Admin_Donem" %>

<%@ Register Assembly="CrmControls" Namespace="CrmControls" TagPrefix="cc1" %>
<%--<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Veyron Crm</title>

    <script type="text/javascript">
    function Kontrol()
    {
        var txt1idver=document.getElementById('txtDonemKod');
        if(txt1idver.value!="")
        {
            return true;
        }
        else
        {
            alert('Donem Kodu Alanı Boş Geçemezsiniz !');
            return false;
        }
   }
    function KontrolSil()
    {
        var txt1idver=document.getElementById('txtDonemKod');
        if(txt1idver.value!="")
        {
            return true;
        }
        else
        {
            alert('Silmek İstediğiniz Dönem Kodunu veya Firmayı Seçin !...');
            return false;
        }
   }
    function PageClose()
    {
          window.close();
          window.opener.location='../DataList.aspx?type=Donem'; 
    }
    function Refresh()
    {
      window.opener.location='../DataList.aspx?type=Donem'; 
    }
        
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true">
    </asp:ScriptManager>
    <div id="ToolBar">
        <table>
            <tr>
                <td>
                    <asp:ImageButton runat="server" ID="imgbtnKaydet" AlternateText="Kaydet" ImageUrl="~/images/page/save.gif"
                        OnClick="imgbtnKaydet_Click" />
                </td>
                <td>
                    <asp:ImageButton runat="server" ID="imgbtnKaydetKapat" AlternateText="Kaydet ve Kapat"
                        ImageUrl="~/images/page/saveClose.gif" OnClick="imgbtnKaydetKapat_Click" />
                </td>
                <td>
                    <asp:ImageButton runat="server" ID="imgbtnSil" AlternateText="Sil" ImageUrl="~/images/page/remove.gif"
                        OnClick="imgbtnSil_Click" Style="width: 16px" />
                </td>
                  <td>
                    <asp:ImageButton ID="imgNewREcord" AlternateText="Yeni Kayıt" runat="server" ImageUrl="~/images/page/newrecord.gif"
                        OnClick="imgNewREcord_Click" Style="width: 16px" />
                </td>
            </tr>
        </table>
    </div>
    <div>
        <table>
            <asp:Panel runat="server" ID="pnlControls">
                <tr>
                    <td>
                        <cc1:CrmLabel runat="server" ID="lblFirma" Text="Firma"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmDropDown runat="server" ID="drpFirma" Width="145px">
                        </cc1:CrmDropDown>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel runat="server" ID="lblDonemKod" Text="Dönem Kod"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox runat="server" ID="txtDonemKod" KontrolTipi="Multi" Maxlength="3"
                            BuyukHarf="Multi"></cc1:CrmTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel runat="server" ID="lblKullDate" Text="Kull. Başlangıç"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtKullDate" runat="server" Width="110px" KontrolTipi="Sayi"></cc1:CrmTextBox>
                        <input type="image" id="imgBaslangic" runat="server" src="~/images/ToolStrip/Vista/btn_calendar.gif" />
<%--                        <cc2:CalendarExtender ID="CalendarExtenderBaslangic_tarihi" runat="server" TargetControlID="txtKullDate"
                            PopupButtonID="imgBaslangic" Format="dd.MMMM.yyyy">
                        </cc2:CalendarExtender>
--%>                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel runat="server" ID="lblKullBit" Text="Kull. Bitiş"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmTextBox ID="txtBitis_tarihi" runat="server" Width="110px" KontrolTipi="Sayi"></cc1:CrmTextBox>
                        <input type="image" id="imgBitis" runat="server" src="~/images/ToolStrip/Vista/btn_calendar.gif" />
<%--                        <cc2:CalendarExtender ID="CalendarExtenderdogum_tarihi" runat="server" TargetControlID="txtBitis_tarihi"
                            PopupButtonID="imgBitis" Format="dd.MMMM.yyyy">
                        </cc2:CalendarExtender>--%>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:CrmLabel runat="server" ID="lblAktifYil" Text="Aktif Yıl"></cc1:CrmLabel>
                    </td>
                    <td>
                        <cc1:CrmDropDown runat="server" ID="drpAktifYil" Width="145px">
                            <asp:ListItem Text="2005" Value="0"></asp:ListItem>
                            <asp:ListItem Text="2006" Value="1"></asp:ListItem>
                            <asp:ListItem Text="2007" Value="2"></asp:ListItem>
                            <asp:ListItem Text="2008" Value="3"></asp:ListItem>
                            <asp:ListItem Text="2009" Value="4"></asp:ListItem>
                            <asp:ListItem Text="2010" Value="5"></asp:ListItem>
                            <asp:ListItem Text="2011" Value="6"></asp:ListItem>
                            <asp:ListItem Text="2012" Value="7"></asp:ListItem>
                            <asp:ListItem Text="2013" Value="8"></asp:ListItem>
                            <asp:ListItem Text="2014" Value="9"></asp:ListItem>
                            <asp:ListItem Text="2015" Value="10"></asp:ListItem>
                            <asp:ListItem Text="2016" Value="11"></asp:ListItem>
                            <asp:ListItem Text="2017" Value="12"></asp:ListItem>
                            <asp:ListItem Text="2018" Value="13"></asp:ListItem>
                            <asp:ListItem Text="2019" Value="14"></asp:ListItem>
                            <asp:ListItem Text="2020" Value="15"></asp:ListItem>
                        </cc1:CrmDropDown>
                    </td>
                </tr>
            </asp:Panel>
        </table>
    </div>
    </form>
</body>
</html>
